<!-- 我的总数 -->

<template>
  <div class="MyTotal">
    <div>
      <div>
        <img src="@screen/assets/img/Monitor/online.png" />
      </div>
      <div>{{ (info.total || {}).onlineQuantity || 0 }}</div>
      <div>在线设备</div>
    </div>

    <div>
      <div>
        <img src="@screen/assets/img/Monitor/offline.png" />
      </div>
      <div>{{ (info.total || {}).offlineQuantity || 0 }}</div>
      <div>离线设备</div>
    </div>

    <div>
      <div>
        <img src="@screen/assets/img/Monitor/fault.png" />
      </div>
      <div>{{ (info.total || {}).faultQuantity || 0 }}</div>
      <div>故障设备</div>
    </div>
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyTotal',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixScreen()],
}
</script>

<style lang="scss">
@import './index.scss';
</style>
